﻿using AutoMapper;
using B.S.DataBase.MyProject.Domain.RBAC;
using B.S.DataBase.MyWrite.API.Appicant.Command.Menus;
using B.S.DataBase.MyWrite.API.Appicant.Command.Roles;
using B.S.DataBase.MyWrite.API.Appicant.Command.Users;

namespace B.S.DataBase.MyWrite.API
{
    public class AutoMapperFilePro : Profile
    {
        public AutoMapperFilePro()
        {
            CreateMap<AddUserCommand, User>().ReverseMap();
            CreateMap<UpdateUserCommand, User>().ReverseMap();
            CreateMap<RoleCreateCommand, Role>().ReverseMap();
            CreateMap<UserRoleCommand, UserRole>().ReverseMap();
            CreateMap<AddMenuCommand, Menu>().ReverseMap();
        }
    }
}